import request from "@/utils/request"

/**
 * 上传文件
 * @param file 
 * @returns 
 */
export function uploadFile(file: File) { 
    const formData = new FormData();
    formData.append('file',file)
    return request({
        url: '/lejuAdmin/material/uploadFileOssSave',
        method: "post",
        data: formData,
        headers: {
            "Content-Type": "multipart/form-data",
        }
    })
}

